﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<link rel="Stylesheet" type="text/css" media="screen" href="Screen.css" />
  <title>STP_SetPortName</title>
</head>
<body>
	<h3>STP_SetPortName</h3>
	<hr />
<pre>
void STP_SetPortName
(
    BRIDGE*     bridge,
    int         portIndex,
    const char* name
);
</pre>
	<h4>
		Summary</h4>
	<p>
		Sets the debug name for a given port. This is the name that will appear in the debug log.</p>
	<h4>
		Parameters</h4>
	<dl>
		<dt></dt>
		<dd></dd>
	</dl>
	<h4>
		Return value</h4>
		<dl>
		<dd>If the function succeeds: <code>STATUS_SUCCESS</code>.</dd>
		<dd>If the function fails: a <a href="STATUS.html"><code>STATUS</code></a> enumeration value 
			other than <code>STATUS_SUCCESS</code>.</dd>
		</dl>
	<h4>
		Remarks</h4>
		<p>
			The default port name is a four-character hexadecimal string representing the port number 
			(counting from 1) OR-er with 0x8000. So the first port will be named &quot;8001&quot;, the second 
			&quot;8002&quot;, the tenth &quot;800A&quot; and so on.</p>

</body>
</html>
